﻿namespace HuaWei.CommClass
{
    using System;
    using System.Runtime.CompilerServices;

    public class BZGSKH
    {

        private decimal _decimal;

        private decimal _decimal1;

        private decimal _decimal2;

        private decimal _decimal3;

        private decimal _decimal4;

        public BZGSKH()
        {
        }

        public BZGSKH(string value)
        {
            if (value.Equals(""))
            {
                this.DYYFKZE = 0M;
                this.QKEBL = 30M;
                this.HTZJ = 0M;
                this.ZDJE = 0M;
                this.QKE = 0M;
            }
            else
            {
                string[] strArray = value.Split(new char[] { '#' });
                this.DYYFKZE = Convert.ToDecimal(strArray[0]);
                this.QKEBL = Convert.ToDecimal(strArray[1]);
                this.HTZJ = Convert.ToDecimal(strArray[2]);
                this.ZDJE = Convert.ToDecimal(strArray[3]);
                this.QKE = Convert.ToDecimal(strArray[4]);
            }
        }

        public override string ToString()
        {
            return (this.DYYFKZE.ToString() + "#" + this.QKEBL.ToString() + "#" + this.HTZJ.ToString() + "#" + this.ZDJE.ToString() + "#" + this.QKE.ToString());
        }

        public decimal DYYFKZE
        {
    
            get
            {
                return this._decimal;
            }
    
            set
            {
                this._decimal = value;
            }
        }

        public decimal HTZJ
        {
    
            get
            {
                return this._decimal2;
            }
    
            set
            {
                this._decimal2 = value;
            }
        }

        public decimal QKE
        {
    
            get
            {
                return this._decimal4;
            }
    
            set
            {
                this._decimal4 = value;
            }
        }

        public decimal QKEBL
        {
    
            get
            {
                return this._decimal1;
            }
    
            set
            {
                this._decimal1 = value;
            }
        }

        public decimal ZDJE
        {
    
            get
            {
                return this._decimal3;
            }
    
            set
            {
                this._decimal3 = value;
            }
        }
    }
}

